package com.atguigu.tingshu.common.kafka.constant;

/**
 * Kafka 主题常量类
 */
public class KafkaConst {

    /**
     * 专辑相关主题
     */
    public static final String TOPIC_ALBUM_UPPER = "tingshu.album.upper";
    public static final String TOPIC_ALBUM_LOWER = "tingshu.album.lower";
    public static final String TOPIC_ALBUM_STAT_UPDATE = "tingshu.album.stat.update";
    public static final String TOPIC_ALBUM_ES_STAT_UPDATE = "tingshu.album.es.stat.update";
    public static final String TOPIC_ALBUM_RANKING_UPDATE = "tingshu.album.ranking.update";

    /**
     * 声音相关主题
     */
    public static final String TOPIC_TRACK_STAT_UPDATE = "tingshu.track.stat.update";

    /**
     * 取消订单主题（延迟消息）
     */
    public static final String TOPIC_CANCEL_ORDER = "tingshu.cancel.order";
    public static final Integer CANCEL_ORDER_DELAY_TIME = 15 * 60;

    /**
     * 支付相关主题
     */
    public static final String TOPIC_ORDER_PAY_SUCCESS = "tingshu.order.pay.success";
    public static final String TOPIC_RECHARGE_PAY_SUCCESS = "tingshu.recharge.pay.success";

    /**
     * 账户相关主题
     */
    public static final String TOPIC_ACCOUNT_UNLOCK = "tingshu.account.unlock";
    public static final String TOPIC_ACCOUNT_MINUS = "tingshu.account.minus";

    /**
     * 用户相关主题
     */
    public static final String TOPIC_USER_PAY_RECORD = "tingshu.user.pay.record";
    public static final String TOPIC_USER_REGISTER = "tingshu.user.register";
    public static final String TOPIC_USER_VIP_EXPIRE_STATUS = "tingshu.user.vip.expire.status";

    /**
     * 热门关键字主题
     */
    public static final String TOPIC_KEYWORD_INPUT = "tingshu.keyword.input";
    public static final String TOPIC_KEYWORD_OUT = "tingshu.keyword.out";

    /**
     * 消费者组ID
     */
    public static final String GROUP_ALBUM = "tingshu-album-group";
    public static final String GROUP_TRACK = "tingshu-track-group";
    public static final String GROUP_ORDER = "tingshu-order-group";
    public static final String GROUP_ACCOUNT = "tingshu-account-group";
    public static final String GROUP_USER = "tingshu-user-group";
    public static final String GROUP_KEYWORD = "tingshu-keyword-group";
    public static final String GROUP_SEARCH = "tingshu-search-group";

}

